tools/xenstore: fix error handling of check_store()
authorJuergen Gross <jgross@suse.com>
Fri, 21 Jan 2022 13:12:19 +0000 (14:12 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Jan 2022 15:34:46 +0000 (15:34 +0000)
commitfe9be76d880b1d43b9dca471f45af3fd380ecb00
treeb5c92f1551c2425cb4916f04bd041e437b8ec018
parent447d514efe0db58d50ee89512856058793f1ba7b
tools/xenstore: fix error handling of check_store()

check_store() has an incomplete error handling: it doesn't check
whether "root" allocation succeeded, and it is leaking the memory of
"root" in case create_hashtable() fails.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/xenstore/xenstored_core.c